import React from 'react';
import ReactDOM from 'react-dom';
import {BrowserRouter as Router, Route} from 'react-router-dom';//导入的方式跟之前有点变化
import Entrance from './page/Entrance';
import Login from './page/login/Login';
import './page/Entrance.css';
import registerServiceWorker from './registerServiceWorker';

const BasicExample = () => (
    <Router>
        <div>
            <Route exact path="/" component={Login}/>
            <Route path="/Entrance" component={Entrance}/>
        </div>
    </Router>
);

ReactDOM.render(<BasicExample />, document.getElementById('root'));
registerServiceWorker();
